package com.yuan.model_convenient.service;

import com.yuan.model_convenient.domain.ConvenientActivityEnroll;
import com.yuan.model_convenient.service.dto.ConvenientActivityEnrollDto;
import com.yuan.model_convenient.service.dto.ConvenientActivityEnrollQueryCriteria;
import me.zhengjie.utils.PageResult;
import org.springframework.data.domain.Pageable;
import org.springframework.transaction.annotation.Transactional;

public interface ConvenientActivityEnrollService {
    PageResult<ConvenientActivityEnrollDto> queryAllByType(ConvenientActivityEnrollQueryCriteria criteria, Pageable pageable);

    @Transactional(rollbackFor = Exception.class)
    void create(ConvenientActivityEnroll resources);

    @Transactional(rollbackFor = Exception.class)
    void update(ConvenientActivityEnroll resources) throws Exception;

    @Transactional(rollbackFor = Exception.class)
    void delete(Integer ids);
}
